package com.wq.enums;

import lombok.Getter;

/**
 * @author wuyunbin
 */

@Getter
public enum RespEnum {
    SUCCESS(200, "success"),
    ERROR(-1, "失败"),
    INVALID_PARAMETERS(30001, "参数错误"),
    TOO_MANY_REQUESTS(30002, "请求过多"),
    TOKEN_ERROR(40001, "token错误"),
    TOKEN_EXPIRED(40002, "token过期"),
    TOKEN_SIGNATURE_INVALID(40003, "token签名无效"),
    TOKEN_MALFORMED(40004, "token格式错误"),
    TOKEN_MISSING(40005, "token丢失"),
    INVALID_ACCOUNT(40006, "非法的账号信息"),
    INVALID_PHONE(40007, "非法的手机号"),
    CODE_ERROR(40008, "验证码错误"),
    CODE_EXPIRED(40009, "用户不存在或验证码过期"),
    ERROR_STATUS(40010, "申请单状态异常"),
    USER_APPLY_NOT_EXISTS(40011, "该用户不存在或者被禁用");


    private Integer code;
    private String message;

     RespEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
